package com.hmall.client;

import com.hmall.common.Address;
import com.hmall.interceptor.MyFeignInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "userservice",configuration = MyFeignInterceptor.class)
public interface AddressClient {
    @GetMapping("/address/{addressId}")
    Address findAddressById(@PathVariable("addressId") Long id);
}
